package com.hk.commons.enums;

import com.hk.commons.constant.ReplaceTemplate;

/**
 * Created by anti
 *
 * @author Antinomy
 */
public enum OperationEvent {

    UNKNOWN("未知事件", MicroServiceType.UNKNOWN, "UNKNOWN", "UNKNOWN", "UNKNOWN", "UNKNOWN"),

    USER_INFO_EXPORT("系统管理-系统用户-导出",
            MicroServiceType.HK, "系统管理", "系统用户", "导出",
            ReplaceTemplate.USER_INFO_EXPORT),

    SYNC_BIND_CARD_ALL("交易统计-个人绑卡明细-同步信息",
            MicroServiceType.HK, "交易统计", "个人绑卡明细", "同步信息",
            ReplaceTemplate.SYNC_BIND_CARD_ALL),

    PRIVATE_PLACEMENT_LIST_CREATE("产品管理-私募产品-新增",
            MicroServiceType.PRODUCT, "产品管理", "私募产品", "新增",
            ReplaceTemplate.PRIVATE_PLACEMENT_LIST_CREATE),

    PRIVATE_PLACEMENT_LIST_EDIT("产品管理-私募产品-修改",
            MicroServiceType.PRODUCT, "产品管理", "私募产品", "修改",
            ReplaceTemplate.PRIVATE_PLACEMENT_LIST_EDIT),

    PRIVATE_PLACEMENT_LIST_CHANGE_STATUS("产品管理-私募产品-更改状态",
            MicroServiceType.PRODUCT, "产品管理", "私募产品", "更改状态",
            ReplaceTemplate.PRIVATE_PLACEMENT_LIST_CHANGE_STATUS),


    CREDITOR_MATCHING_LIST_IMPORT("债权匹配-债权匹配-进行匹配",
            MicroServiceType.PRODUCT, "债权匹配", "债权匹配", "进行匹配",
            ReplaceTemplate.CREDITOR_MATCHING_LIST_IMPORT),

    CREDITOR_MATCHING_LIST_SAVE("债权匹配-债权匹配-保存结果",
            MicroServiceType.PRODUCT, "债权匹配", "债权匹配", "保存结果",
            ReplaceTemplate.CREDITOR_MATCHING_LIST_SAVE),

    SYSTEM_ROLE_ADD("系统管理-角色管理-新增",
            MicroServiceType.WEB, "系统管理", "角色管理", "新增",
            ReplaceTemplate.SYSTEM_ROLE_ADD),

    SYSTEM_ROLE_EDIT("系统管理-角色管理-编辑",
            MicroServiceType.WEB, "系统管理", "角色管理", "编辑",
            ReplaceTemplate.SYSTEM_ROLE_EDIT),

    SYSTEM_ROLE_DISTUBTE("系统管理-角色管理-分配权限",
            MicroServiceType.WEB, "系统管理", "角色管理", "分配权限",
            ReplaceTemplate.SYSTEM_ROLE_DISTUBTE),

    SYSTEM_ROLE_DELETE("系统管理-角色管理-删除",
            MicroServiceType.WEB, "系统管理", "角色管理", "删除",
            ReplaceTemplate.SYSTEM_ROLE_DELETE),

    ACTIVITY_LIST_CREATE("活动管理-活动列表-新增",
            MicroServiceType.ACTIVITY, "活动管理", "活动列表", "新增",
            ReplaceTemplate.ACTIVITY_LIST_CREATE),

    ACTIVITY_LIST_EDIT("活动管理-活动列表-编辑",
            MicroServiceType.ACTIVITY, "活动管理", "活动列表", "编辑",
            ReplaceTemplate.ACTIVITY_LIST_EDIT),

    ACTIVITY_LIST_PUBLISH("活动管理-活动列表-发布",
            MicroServiceType.ACTIVITY, "活动管理", "活动列表", "发布",
            ReplaceTemplate.ACTIVITY_LIST_PUBLISH),

    ACTIVITY_LIST_PUSH("活动管理-活动列表-推送",
            MicroServiceType.ACTIVITY, "活动管理", "活动列表", "推送",
            ReplaceTemplate.ACTIVITY_LIST_PUSH),


    VERSION_MANAGEMENT_EDIT ("系统管理-版本管理-编辑",
                         MicroServiceType.ACTIVITY, "系统管理", "版本管理", "编辑",
                         ReplaceTemplate.APP_VERSION_EDIT),

    BUSINESS_MANAGEMENT_CREATE
            ("合作平台-合作商家管理-新增",
            MicroServiceType.TRADE, "合作平台", "合作商家管理", "新增",
            ReplaceTemplate.COMPANG_CREATE),

    BUSINESS_MANAGEMENT_EDIT
            ("合作平台-合作商家管理-编辑",
            MicroServiceType.TRADE, "合作平台", "合作商家管理", "编辑",
            ReplaceTemplate.COMPANG_EDIT),

    ;

    private String name;
    private String menuLv1;
    private String menuLv2;
    private String button;
    private String descTemplate;
    private MicroServiceType service;


    OperationEvent(String name, MicroServiceType service, String menuLv1, String menuLv2, String button, String descTemplate) {
        this.name = name;
        this.menuLv1 = menuLv1;
        this.menuLv2 = menuLv2;
        this.button = button;
        this.service = service;
        this.descTemplate = descTemplate;
    }

    public String getName() {
        return name;
    }

    public String getMenuLv1() {
        return menuLv1;
    }

    public String getMenuLv2() {
        return menuLv2;
    }

    public String getButton() {
        return button;
    }

    public MicroServiceType getService() {
        return service;
    }

    public String getDescTemplate() {
        return descTemplate;
    }

}